package com.study.talk.netty.message.request;

import com.study.common.annotation.Desc;
import com.study.talk.netty.message.MessageType;
import com.study.talk.netty.message.TalkMessage;

@Desc("群消息请求")
public class GroupMessageRequest extends TalkMessage {


  @Desc("群id")
    private Integer groupId;

  @Desc("消息内容")
    private String content;

  @Desc("消息类型")
    private Integer messageType = 0;

    @Override
    public byte getType() {
        return MessageType.GROUP_MESSAGE_REQUEST;
    }

    public GroupMessageRequest() {
    }

    public GroupMessageRequest(Integer groupId, String content, Integer messageType) {
        this.groupId = groupId;
        this.content = content;
        this.messageType = messageType;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getMessageType() {
        return messageType;
    }

    public void setMessageType(Integer messageType) {
        this.messageType = messageType;
    }
}
